package org.fastmvc.ioc.context;

import org.fastmvc.Context;
import org.fastmvc.factory.BeanContext;

/**
 * <类描述>
 *
 * @author tangch
 * @date 2017年11月07日 17:28
 */
public class ApplicationContext extends BeanContext implements Context {

	protected final long startDate =  System.currentTimeMillis();
	@Override
	public String getId() {
		return String.valueOf(Thread.currentThread().getId());
	}

	@Override
	public String getApplicationName() {
		return Thread.currentThread().getName();
	}

	@Override
	public long getStartupDate() {
		return startDate;
	}
}
